\hypertarget{classjost_1_1Object}{
\section{jost::Object Class Reference}
\label{classjost_1_1Object}\index{jost::Object@{jost::Object}}
}


{\ttfamily \#include $<$Object.hpp$>$}



Inheritance diagram for jost::Object:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=120pt]{classjost_1_1Object__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for jost::Object:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=400pt]{classjost_1_1Object__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classjost_1_1Object_a10e56322dde22db422d0547fc80dfb76}{
typedef std::map$<$ std::string, \hyperlink{classjost_1_1Value}{jost::Value} $\ast$ $>$ {\bfseries ValueMap\_\-t}}
\label{classjost_1_1Object_a10e56322dde22db422d0547fc80dfb76}

\item 
\hypertarget{classjost_1_1Object_acf5afef9309f35a19e95b2ddd8e4f3a1}{
typedef ValueMap\_\-t::const\_\-iterator {\bfseries const\_\-iterator}}
\label{classjost_1_1Object_acf5afef9309f35a19e95b2ddd8e4f3a1}

\item 
\hypertarget{classjost_1_1Object_a0ccfb2a9f5d63195536901085b05da62}{
typedef ValueMap\_\-t::iterator {\bfseries iterator}}
\label{classjost_1_1Object_a0ccfb2a9f5d63195536901085b05da62}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classjost_1_1Object_a75ba605a633b40d159962bd9b1ced231}{Object} ()  throw ()
\item 
virtual \hyperlink{classjost_1_1Object_a55592da8a96086def230b902ba71036b}{$\sim$Object} ()  throw ()
\item 
\hyperlink{classjost_1_1Value}{jost::Value} $\ast$ \hyperlink{classjost_1_1Object_aeb15a910e8bc48f155429b382e986098}{get\_\-field} (const std::string \&field)  throw (jost::UnknownField)
\item 
\hyperlink{classjost_1_1Value}{jost::Value} $\ast$ \hyperlink{classjost_1_1Object_a62bfa95fce6026744a4248859da91ddc}{set\_\-field} (const std::string \&name, \hyperlink{classjost_1_1Value}{jost::Value} $\ast$value)  throw ()
\item 
virtual std::string \hyperlink{classjost_1_1Object_a86a3a792b9ff67ea4df1a1de4131b42e}{serialize} ()  throw ()
\item 
\hypertarget{classjost_1_1Object_a12b36167abec8218ee90a4e00b7c89c2}{
iterator {\bfseries begin} ()  throw ()}
\label{classjost_1_1Object_a12b36167abec8218ee90a4e00b7c89c2}

\item 
\hypertarget{classjost_1_1Object_ad9c8fbaad1f302f996226e11d108f516}{
iterator {\bfseries end} ()  throw ()}
\label{classjost_1_1Object_ad9c8fbaad1f302f996226e11d108f516}

\item 
\hypertarget{classjost_1_1Object_ab7bee2a22a7b5d1f69add6470d8f9c9c}{
const\_\-iterator {\bfseries begin} () const   throw ()}
\label{classjost_1_1Object_ab7bee2a22a7b5d1f69add6470d8f9c9c}

\item 
\hypertarget{classjost_1_1Object_abf9d78682f30381b8ce627545ae0f8f6}{
const\_\-iterator {\bfseries end} () const   throw ()}
\label{classjost_1_1Object_abf9d78682f30381b8ce627545ae0f8f6}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
The class {\ttfamily \hyperlink{classjost_1_1Object}{Object}} represents a JSON \hyperlink{classjost_1_1Object}{Object}, which is made of a collection of named fields.\par


\begin{DoxyAuthor}{Author}
Angelo Corsaro $<$mailto:\href{mailto:angelo.corsaro@gmail.com}{\tt angelo.corsaro@gmail.com}$>$ 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
0.1 
\end{DoxyVersion}


Definition at line 40 of file Object.hpp.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{classjost_1_1Object_a75ba605a633b40d159962bd9b1ced231}{
\index{jost::Object@{jost::Object}!Object@{Object}}
\index{Object@{Object}!jost::Object@{jost::Object}}
\subsubsection[{Object}]{\setlength{\rightskip}{0pt plus 5cm}jost::Object::Object ()  throw ()}}
\label{classjost_1_1Object_a75ba605a633b40d159962bd9b1ced231}
Creates a new {\ttfamily \hyperlink{classjost_1_1Object}{Object}}. 

Definition at line 4 of file Object.cpp.

\hypertarget{classjost_1_1Object_a55592da8a96086def230b902ba71036b}{
\index{jost::Object@{jost::Object}!$\sim$Object@{$\sim$Object}}
\index{$\sim$Object@{$\sim$Object}!jost::Object@{jost::Object}}
\subsubsection[{$\sim$Object}]{\setlength{\rightskip}{0pt plus 5cm}jost::Object::$\sim$Object ()  throw ()\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classjost_1_1Object_a55592da8a96086def230b902ba71036b}
Destroys this {\ttfamily \hyperlink{classjost_1_1Object}{Object}} and its contained {\ttfamily \hyperlink{classjost_1_1Value}{Value}{\ttfamily s. }}

Definition at line 6 of file Object.cpp.



\subsection{Member Function Documentation}
\hypertarget{classjost_1_1Object_aeb15a910e8bc48f155429b382e986098}{
\index{jost::Object@{jost::Object}!get\_\-field@{get\_\-field}}
\index{get\_\-field@{get\_\-field}!jost::Object@{jost::Object}}
\subsubsection[{get\_\-field}]{\setlength{\rightskip}{0pt plus 5cm}{\bf jost::Value}$\ast$ jost::Object::get\_\-field (const std::string \& {\em field})  throw (jost::UnknownField)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classjost_1_1Object_aeb15a910e8bc48f155429b382e986098}
Get a field provided its name.


\begin{DoxyParams}{Parameters}
\item[{\em field}]the name of the object field.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the {\ttfamily \hyperlink{classjost_1_1Value}{Value}} associated with the given field name.
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
\item[{\em jost::UnknownField}]when the field name is not present in the given {\ttfamily \hyperlink{classjost_1_1Object}{Object}}. \end{DoxyExceptions}
\hypertarget{classjost_1_1Object_a86a3a792b9ff67ea4df1a1de4131b42e}{
\index{jost::Object@{jost::Object}!serialize@{serialize}}
\index{serialize@{serialize}!jost::Object@{jost::Object}}
\subsubsection[{serialize}]{\setlength{\rightskip}{0pt plus 5cm}std::string jost::Object::serialize ()  throw ()\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classjost_1_1Object_a86a3a792b9ff67ea4df1a1de4131b42e}
Generates the JSON serialization for the current {\ttfamily \hyperlink{classjost_1_1Object}{Object}}.

\begin{DoxyReturn}{Returns}
a string representing the JSON stream for the given object. 
\end{DoxyReturn}


Implements \hyperlink{classjost_1_1Value_a49dfecfb0a1bc09c7bdf10c31cba0820}{jost::Value}.



Definition at line 19 of file Object.cpp.

\hypertarget{classjost_1_1Object_a62bfa95fce6026744a4248859da91ddc}{
\index{jost::Object@{jost::Object}!set\_\-field@{set\_\-field}}
\index{set\_\-field@{set\_\-field}!jost::Object@{jost::Object}}
\subsubsection[{set\_\-field}]{\setlength{\rightskip}{0pt plus 5cm}{\bf jost::Value}$\ast$ jost::Object::set\_\-field (const std::string \& {\em name}, \/  {\bf jost::Value} $\ast$ {\em value})  throw ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classjost_1_1Object_a62bfa95fce6026744a4248859da91ddc}
Set a field with a specific {\ttfamily \hyperlink{classjost_1_1Value}{Value}}.


\begin{DoxyParams}{Parameters}
\item[{\em name}]the field name \item[{\em value}]the filed value \end{DoxyParams}
\begin{DoxyReturn}{Returns}
the previous value associated with the field name. 
\end{DoxyReturn}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
src/jost/Object.hpp\item 
src/jost/Object.cpp\end{DoxyCompactItemize}
